package com.grape.dbmiddle.consumer;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
 * 描述:Scheduler
 * @author: myx
 * @date: 2019/8/1 0001
 * Copyright © 2019-grape. All rights reserved.
 */
@Component
public class Scheduler{

    //每隔2秒执行一次
    @Scheduled(fixedRate = 5000)
    public void testTasks() {
        //TODO：查询日志表 未完成的在发送一条信息
        System.out.println("--------------正在查询未完成消息继续发送消息中间件-----------------");
    }


}